package com.runvp.service.convert;

import com.runvp.common.model.vo.order.BizCustomerOrderVO;
import com.runvp.common.model.vo.order.BizOrderVO;
import com.runvp.common.utils.bean.BeanUtil;
import com.runvp.service.biz.domain.BizOrder;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 订单 对象属性转换
 *
 * @author xukk
 */
@Component
public class BizOrderConvert {


    public List<BizOrderVO> toVOS(List<BizOrder> list) {
        return BeanUtil.copyAs(list,BizOrderVO.class);
    }

    public List<BizCustomerOrderVO> toCustomerOrderVOS(List<BizOrder> list) {
        return BeanUtil.copyAs(list,BizCustomerOrderVO.class);
    }

}
